Free Cocktail API Support
The API and site will always remain free to access at its basic level.

Test API Key
You can use the test API key "1" during development of your app or for educational use (see test links below)
However you must sign up to Premium API if you want a production API key if releasing publicly on an appstore.

API Upgrade
All Premium API subscribers have access to the beta version of the API which allows mutiple ingredient filters.
Supporters also get special lookups for Popular and Recent Cocktails. You can also list the full database rather than limited to 100 items.
You also get access to the latest and multi random image API methods.

Contact
Email: [email protected]

V1 API

API Methods using the developer test key '1' in the URL

Search cocktail by name
www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita

List all cocktails by first letter
www.thecocktaildb.com/api/json/v1/1/search.php?f=a

Search ingredient by name
www.thecocktaildb.com/api/json/v1/1/search.php?i=vodka

Lookup full cocktail details by id
www.thecocktaildb.com/api/json/v1/1/lookup.php?i=11007

Lookup ingredient by ID
www.thecocktaildb.com/api/json/v1/1/lookup.php?iid=552

Lookup a random cocktail
www.thecocktaildb.com/api/json/v1/1/random.php

Lookup a selection of 10 random cocktails *Premium API only
www.thecocktaildb.com/api/json/v1/1/randomselection.php

List Popular cocktails *Premium API only
www.thecocktaildb.com/api/json/v1/1/popular.php

List most latest cocktails *Premium API only
www.thecocktaildb.com/api/json/v1/1/latest.php

Search by ingredient
www.thecocktaildb.com/api/json/v1/1/filter.php?i=Gin
www.thecocktaildb.com/api/json/v1/1/filter.php?i=Vodka

Filter by multi-ingredient *Premium API only
www.thecocktaildb.com/api/json/v1/1/filter.php?i=Dry_Vermouth,Gin,Anis

Filter by alcoholic
www.thecocktaildb.com/api/json/v1/1/filter.php?a=Alcoholic
www.thecocktaildb.com/api/json/v1/1/filter.php?a=Non_Alcoholic

Filter by Category
www.thecocktaildb.com/api/json/v1/1/filter.php?c=Ordinary_Drink
www.thecocktaildb.com/api/json/v1/1/filter.php?c=Cocktail

Filter by Glass
www.thecocktaildb.com/api/json/v1/1/filter.php?g=Cocktail_glass
www.thecocktaildb.com/api/json/v1/1/filter.php?g=Champagne_flute

List the categories, glasses, ingredients or alcoholic filters
www.thecocktaildb.com/api/json/v1/1/list.php?c=list
www.thecocktaildb.com/api/json/v1/1/list.php?g=list
www.thecocktaildb.com/api/json/v1/1/list.php?i=list
www.thecocktaildb.com/api/json/v1/1/list.php?a=list


Images
Drink thumbnails
Add /preview to the end of the cocktail image URL
/images/media/drink/vrwquq1478252802.jpg/preview (100x100 pixels)


Ingredient Thumbnails
www.thecocktaildb.com/images/ingredients/gin-Small.png
(100x100 pixels)

www.thecocktaildb.com/images/ingredients/gin-Medium.png
(350x350 pixels)

www.thecocktaildb.com/images/ingredients/gin.png
(700x700 pixels)